package com.neutech.neusys.controller;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.neutech.neusys.service.SysUserService;

@RestController
@RequestMapping("/his/sys")
public class SysConstantItemController {
	@Autowired
	private SysUserService sysUserService;
	//所在科室，用户级别，医生职称
	@RequestMapping("/getConstantItemByTypeId")
	public List<Map<String,Object>> getConstantItemByTypeId(String typeId) throws Exception{
		System.out.println(typeId);
		List<Map<String,Object>> list = sysUserService.queryAll(typeId);
		return list;
	}
	//挂号级别
	@RequestMapping("/getRegistByTypeID")
	public List<Map<String,Object>> getRegistByTypeID(String typeID) throws Exception{
		return sysUserService.queryRegistAll(typeID);
	}
	
	//科室
	@RequestMapping("/getDeptByTypeID")
	public List<Map<String,Object>> getDeptByTypeID() throws Exception{
		return sysUserService.queryDeptAll();
	}
}
